package com.chenyue.cm.match.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 赛事 赛程分配
 * </p>
 *
 * @author Lbx
 * @since 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdMatchFormat对象", description = "赛事 赛程分配")
public class JdMatchFormat extends Model<JdMatchFormat> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "赛事id")
    private Integer matchId;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "进行顺序")
    private Integer arrangeOrder;

    @ApiModelProperty(value = "晋级人数")
    private Integer promotionNum;

    @ApiModelProperty(value = "晋级分数")
    private Integer promotionScore;

    @ApiModelProperty(value = "是否手动晋级（0自动 1手动）")
    private Integer updateType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
